<?php

namespace App\Models;

class OrderCommentModel extends Model
{
    protected $table = 'orders_comment';

    const type_gongsi=1;
    const type_gongchang=2;

    public static function getType($status=null){
        $list=[
            self::type_gongsi=>'公司',
            self::type_gongchang=>'工厂',

        ];
        if(!$status){
            return $list;
        }
        return isset($list[$status])?$list[$status]:'';
    }
}